National Park Service U.S. Department of the Interior
Joshua Tree National Park
Today in Joshua Tree National Park
Dev Process
Organization
Project Directories
.git, .gitignore (vendor, docs, among others)
composer.json, vendor dir. Guzzle, Plates, Monolog, Pimple
docs - various notes on project
config - Definitions, Local settings, Cache Settings, constants, initialize, passwords
var, var/ext - cache files. All external are in var/ext to make it easy to symlink to other dirs on server
data - only used for file containing version
logs - monolog log files, rotate 5 days
plates - templates for all data.
public - public_html. has css/, js/, docs/, fonts/ (has Frutiger, but not used), all public php/html pages
src - all Classes. DisplayManager, CacheManager, Calendar, Camps.
Local (on developer's machine)
path to root: /Users/john/Sites/
web site: jotr.local
access: no passwords
caches: private, cron updates
git remotes: dev, work, livex, live, hub (github). Remotes link to .git directories below;
Remotes (on remote server)
Path to git roots: /usr/home/digitalm/Sites/jtnp/
Each site has a root dir (all the files) and root.git directory (receives uploads and checks them out to the root dir).
Server's public html dir is ~/public_html. Each web url points to dir of same name in public_html. That dir is symlinked to "public" dir in the corresponding git root
on receiving repo, git checks out indicated branch to root.
Each site has its own set of caches, except for Livex, which shares the real site's external caches.
Dev Site: dev
root: jdev, jdev.git
default git branch: dev
public html: jotrd.digitalmx.com -> root/public
access: one pw for all access
caches: all private, manual update
Beta Site: beta
root: jbeta, jbeta.git
default git branch: work
public html: jotrb.digitalmx.com -> root/public
access: simple pw for site. Page controls same as live
caches: all private, manual update
Practice Site: jotrx
root: jotrx, jotrx.git
default git branch: live
public html: jotrx.digitalmx.com -> root/public
access: has its own set
caches: externals symlink to live, others private
Live Site: live
root: live, live.git
default git branch: live
public html: jotr.digitalmx.com -> root/public
access: public, but pw for admin functions
caches: cron update every 30 mins
Data/Version
is set to tag/date and added at commit
Security
Passwords are stored in config/passwords.ini
Each domain (dev, live) has its own set of passwords.
Passwords set a user level (0-9)
Each domain and page may require a minimum user level to access. If there is no listing for a page or domain in passwords.ini, there are no restrictions.